<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8" />
  <title>bn::affine_bg_map_ptr class | Butano Docs</title>
  <link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,400i,600,600i%7CSource+Code+Pro:400,400i,600" />
  <link rel="stylesheet" href="m-dark+documentation.compiled.css" />
  <link rel="icon" href="favicon-dark.png" type="image/png" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta name="theme-color" content="#22272e" />
</head>
<body>
<header><nav id="navigation">
  <div class="m-container">
    <div class="m-row">
      <span id="m-navbar-brand" class="m-col-t-8 m-col-m-none m-left-m">
        <a href="https://github.com/GValiente/butano">Butano</a> <span class="m-breadcrumb">|</span> <a href="index.html" class="m-thin">Docs</a>
      </span>
      <div class="m-col-t-4 m-hide-m m-text-right m-nopadr">
        <a href="#search" class="m-doc-search-icon" title="Search" onclick="return showSearch()"><svg style="height: 0.9rem;" viewBox="0 0 16 16">
          <path id="m-doc-search-icon-path" d="m6 0c-3.31 0-6 2.69-6 6 0 3.31 2.69 6 6 6 1.49 0 2.85-0.541 3.89-1.44-0.0164 0.338 0.147 0.759 0.5 1.15l3.22 3.79c0.552 0.614 1.45 0.665 2 0.115 0.55-0.55 0.499-1.45-0.115-2l-3.79-3.22c-0.392-0.353-0.812-0.515-1.15-0.5 0.895-1.05 1.44-2.41 1.44-3.89 0-3.31-2.69-6-6-6zm0 1.56a4.44 4.44 0 0 1 4.44 4.44 4.44 4.44 0 0 1-4.44 4.44 4.44 4.44 0 0 1-4.44-4.44 4.44 4.44 0 0 1 4.44-4.44z"/>
        </svg></a>
        <a id="m-navbar-show" href="#navigation" title="Show navigation"></a>
        <a id="m-navbar-hide" href="#" title="Hide navigation"></a>
      </div>
      <div id="m-navbar-collapse" class="m-col-t-12 m-show-m m-col-m-none m-right-m">
        <div class="m-row">
          <ol class="m-col-t-6 m-col-m-none">
            <li><a href="pages.html">Pages</a></li>
            <li><a href="modules.html">Modules</a></li>
          </ol>
          <ol class="m-col-t-6 m-col-m-none" start="3">
            <li><a href="namespaces.html">Namespaces</a></li>
            <li><a href="annotated.html">Classes</a></li>
            <li><a href="files.html">Files</a></li>
            <li class="m-show-m"><a href="#search" class="m-doc-search-icon" title="Search" onclick="return showSearch()"><svg style="height: 0.9rem;" viewBox="0 0 16 16">
              <use href="#m-doc-search-icon-path" />
            </svg></a></li>
          </ol>
        </div>
      </div>
    </div>
  </div>
</nav></header>
<main><article>
  <div class="m-container m-container-inflatable">
    <div class="m-row">
      <div class="m-col-l-10 m-push-l-1">
        <h1>
          <span class="m-breadcrumb"><a href="namespacebn.html">bn</a>::<wbr/></span>affine_bg_map_ptr <span class="m-thin">class</span>
          <div class="m-doc-include m-code m-inverted m-text-right"><span class="cp">#include</span> <a class="cpf" href="bn__affine__bg__map__ptr_8h.html">&lt;bn_affine_bg_map_ptr.h&gt;</a></div>
        </h1>
        <p>std::shared_ptr like smart pointer that retains shared ownership of an affine background map.</p>
        <nav class="m-block m-default">
          <h3>Contents</h3>
          <ul>
            <li>
              Reference
              <ul>
                <li><a href="#pub-static-methods">Public static functions</a></li>
                <li><a href="#typeless-methods">Constructors, destructors, conversion operators</a></li>
                <li><a href="#pub-methods">Public functions</a></li>
                <li><a href="#friends">Friends</a></li>
              </ul>
            </li>
          </ul>
        </nav>
<p>Several <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> objects may own the same affine background.</p><p>The affine background map is released when the last remaining <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> owning it is destroyed.</p>
        <section id="pub-static-methods">
          <h2><a href="#pub-static-methods">Public static functions</a></h2>
          <dl class="m-doc">
            <dt>
              <span class="m-doc-wrap-bumper">static auto <a href="#aa1bcc168c5b95e9299d3730796595df9" class="m-doc">find</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a>&amp; map_item,
              const <a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a>&amp; tiles,
              const <a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a>&amp; palette) -&gt; <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&gt;</span>
            </dt>
            <dd>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">static auto <a href="#ad503f1ffdc96630c6a828855f9db02fb" class="m-doc">find</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a>&amp; map_item,
              const <a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a>&amp; tiles,
              const <a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a>&amp; palette,
              int map_index) -&gt; <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&gt;</span>
            </dt>
            <dd>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">static auto <a href="#a13d54eda002cae1a62560c22a23e5a8f" class="m-doc">find</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__item.html" class="m-doc">affine_<wbr />bg_<wbr />item</a>&amp; item) -&gt; <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&gt;</span>
            </dt>
            <dd>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">static auto <a href="#ad3107ecd99d42212c71d575979299590" class="m-doc">find</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__item.html" class="m-doc">affine_<wbr />bg_<wbr />item</a>&amp; item,
              int map_index) -&gt; <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&gt;</span>
            </dt>
            <dd>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">static auto <a href="#a2ea9c348a2cf36519c08b9cbd91e9941" class="m-doc">create</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a>&amp; map_item,
              <a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a> tiles,
              <a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a> palette) -&gt; <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a></span>
            </dt>
            <dd>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information. If it is not found, it creates an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">static auto <a href="#a1433c56e46c307e024a3ae23b9046f83" class="m-doc">create</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a>&amp; map_item,
              <a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a> tiles,
              <a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a> palette,
              int map_index) -&gt; <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a></span>
            </dt>
            <dd>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information. If it is not found, it creates an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">static auto <a href="#afecd1c9b58161775f197744554d390dc" class="m-doc">create</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__item.html" class="m-doc">affine_<wbr />bg_<wbr />item</a>&amp; item) -&gt; <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a></span>
            </dt>
            <dd>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information. If it is not found, it creates an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">static auto <a href="#a83a31758b6147475af0d0d41b4ad5882" class="m-doc">create</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__item.html" class="m-doc">affine_<wbr />bg_<wbr />item</a>&amp; item,
              int map_index) -&gt; <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a></span>
            </dt>
            <dd>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information. If it is not found, it creates an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">static auto <a href="#a8d59b38758a575359f6418c646bfe600" class="m-doc">allocate</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1size.html" class="m-doc">size</a>&amp; dimensions,
              <a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a> tiles,
              <a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a> palette) -&gt; <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a></span>
            </dt>
            <dd>Creates an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references a chunk of VRAM map cells not visible on the screen.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">static auto <a href="#a5ad234fba1443c49c2f524c90e4d5811" class="m-doc">create_optional</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a>&amp; map_item,
              <a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a> tiles,
              <a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a> palette) -&gt; <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&gt;</span>
            </dt>
            <dd>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information. If it is not found, it creates an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">static auto <a href="#a72a75fda942ee4917ebb0bad4ca2f163" class="m-doc">create_optional</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a>&amp; map_item,
              <a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a> tiles,
              <a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a> palette,
              int map_index) -&gt; <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&gt;</span>
            </dt>
            <dd>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information. If it is not found, it creates an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">static auto <a href="#aa20ae5947659116553571ae5b0f007b4" class="m-doc">create_optional</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__item.html" class="m-doc">affine_<wbr />bg_<wbr />item</a>&amp; item) -&gt; <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&gt;</span>
            </dt>
            <dd>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information. If it is not found, it creates an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">static auto <a href="#a95aab24f6f71e60cf71dbec53a9047fd" class="m-doc">create_optional</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__item.html" class="m-doc">affine_<wbr />bg_<wbr />item</a>&amp; item,
              int map_index) -&gt; <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&gt;</span>
            </dt>
            <dd>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information. If it is not found, it creates an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">static auto <a href="#aad64c1ebd6e58059ffa2fdd51784b76d" class="m-doc">allocate_optional</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1size.html" class="m-doc">size</a>&amp; dimensions,
              <a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a> tiles,
              <a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a> palette) -&gt; <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&gt;</span>
            </dt>
            <dd>Creates an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references a chunk of VRAM map cells not visible on the screen.</dd>
          </dl>
        </section>
        <section id="typeless-methods">
          <h2><a href="#typeless-methods">Constructors, destructors, conversion operators</a></h2>
          <dl class="m-doc">
            <dt>
              <span class="m-doc-wrap-bumper"><a href="#a80cffa3fed413db7f6febfb77d1f20dc" class="m-doc">affine_bg_map_ptr</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&amp; other)</span>
            </dt>
            <dd>Copy constructor.</dd>
            <dt>
              <span class="m-doc-wrap-bumper"><a href="#a660a154e2ae9c7062dd6069655a75935" class="m-doc">affine_bg_map_ptr</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&amp;&amp; other) <span class="m-label m-flat m-success">noexcept</span></span>
            </dt>
            <dd>Move constructor.</dd>
            <dt id="a086f774e0495b3dc66b968483301033d">
              <span class="m-doc-wrap-bumper"><a href="#a086f774e0495b3dc66b968483301033d" class="m-doc-self">~affine_bg_map_ptr</a>(</span><span class="m-doc-wrap">)</span>
            </dt>
            <dd>Releases the referenced map cells if no more <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> objects reference to them.</dd>
          </dl>
        </section>
        <section id="pub-methods">
          <h2><a href="#pub-methods">Public functions</a></h2>
          <dl class="m-doc">
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#aea515a7f9838ef83a45cd32795f08aff" class="m-doc">operator=</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&amp; other) -&gt; <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&amp;</span>
            </dt>
            <dd>Copy assignment operator.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#ab19b38dcb9ee796ec7ad45c4292e5a77" class="m-doc">operator=</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&amp;&amp; other) -&gt; <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&amp; <span class="m-label m-flat m-success">noexcept</span></span>
            </dt>
            <dd>Move assignment operator.</dd>
            <dt id="a6960c30fcc0847f2b8872f2d40922650">
              <span class="m-doc-wrap-bumper">auto <a href="#a6960c30fcc0847f2b8872f2d40922650" class="m-doc-self">id</a>(</span><span class="m-doc-wrap">) const -&gt; int</span>
            </dt>
            <dd>Returns the internal id.</dd>
            <dt id="a050866b657151e6a661865e2ed68247c">
              <span class="m-doc-wrap-bumper">auto <a href="#a050866b657151e6a661865e2ed68247c" class="m-doc-self">dimensions</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="classbn_1_1size.html" class="m-doc">size</a></span>
            </dt>
            <dd>Returns the size in map cells of the referenced map.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">auto <a href="#ae9cad293283c76cbf828c692414bedd5" class="m-doc">big</a>(</span><span class="m-doc-wrap">) const -&gt; bool</span>
            </dt>
            <dd>Indicates if this map is big or not.</dd>
            <dt id="af475956e82faee432ec86233a5624fe9">
              <span class="m-doc-wrap-bumper">auto <a href="#af475956e82faee432ec86233a5624fe9" class="m-doc-self">big_canvas_size</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="group__bg__map.html#gaf0efc6369fee6e1306d928c8f5cd3652" class="m-doc">affine_<wbr />bg_<wbr />big_<wbr />map_<wbr />canvas_<wbr />size</a></span>
            </dt>
            <dd>Returns the size of the canvas used to render this big map.</dd>
            <dt id="ac77a2e8426dcb5d486a6be32cc6ccbde">
              <span class="m-doc-wrap-bumper">auto <a href="#ac77a2e8426dcb5d486a6be32cc6ccbde" class="m-doc-self">tiles_offset</a>(</span><span class="m-doc-wrap">) const -&gt; int</span>
            </dt>
            <dd>Returns how many tiles to offset in the cells of this map before writing them in VRAM.</dd>
            <dt id="a356a51d20dba191c6cf3a23b014f7691">
              <span class="m-doc-wrap-bumper">auto <a href="#a356a51d20dba191c6cf3a23b014f7691" class="m-doc-self">compression</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="group__tool.html#gabe5512b25aeba41d12da5c555ed129ae" class="m-doc">compression_<wbr />type</a></span>
            </dt>
            <dd>Returns the compression of the referenced map cells.</dd>
            <dt id="a9d66905b8bcf9e33f09cee8716c9408f">
              <span class="m-doc-wrap-bumper">auto <a href="#a9d66905b8bcf9e33f09cee8716c9408f" class="m-doc-self">cells_ref</a>(</span><span class="m-doc-wrap">) const -&gt; <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1span.html" class="m-doc">span</a>&lt;const <a href="namespacebn.html#abf2be6b23beabffcd77c28774dafbfc6" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />cell</a>&gt;&gt;</span>
            </dt>
            <dd>Returns the referenced map cells unless it was created with allocate or allocate_optional. In that case, it returns <a href="namespacebn.html#a01f293535903e4c4777564a86a0f520b" class="m-doc">bn::<wbr />nullopt</a>.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#ad6f9f3c533746536389696a801ee1a3e" class="m-doc">set_cells_ref</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a>&amp; map_item)</span>
            </dt>
            <dd>Sets the map cells to handle.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#aafaa2304b5f6ab9ed718b5378d587de4" class="m-doc">set_cells_ref</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a>&amp; map_item,
              int map_index)</span>
            </dt>
            <dd>Sets the map cells to handle.</dd>
            <dt id="a7b55ebf7798f5dbdf6dfba68b9bd0a1e">
              <span class="m-doc-wrap-bumper">void <a href="#a7b55ebf7798f5dbdf6dfba68b9bd0a1e" class="m-doc-self">reload_cells_ref</a>(</span><span class="m-doc-wrap">)</span>
            </dt>
            <dd>Uploads the referenced map cells to VRAM again to make visible the possible changes in them.</dd>
            <dt id="aa52e80c47204cd63019ff18cdf403bff">
              <span class="m-doc-wrap-bumper">auto <a href="#aa52e80c47204cd63019ff18cdf403bff" class="m-doc-self">tiles</a>(</span><span class="m-doc-wrap">) const -&gt; const <a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a>&amp;</span>
            </dt>
            <dd>Returns the referenced tiles.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#a7abfa3ba85b08981dbcc0a97ffd56b8a" class="m-doc">set_tiles</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a>&amp; tiles)</span>
            </dt>
            <dd>Sets the referenced tiles.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#abf37f96e110e2e811146c31c364b9229" class="m-doc">set_tiles</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a>&amp;&amp; tiles)</span>
            </dt>
            <dd>Sets the referenced tiles.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#a2c16a1b8942fb862035d8dde78eedc31" class="m-doc">set_tiles</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__tiles__item.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />item</a>&amp; tiles_item)</span>
            </dt>
            <dd>Replaces the referenced tiles with a new tile set created with the given <a href="classbn_1_1affine__bg__tiles__item.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />item</a>.</dd>
            <dt id="a87742b02b574ee83e739f5764207664b">
              <span class="m-doc-wrap-bumper">auto <a href="#a87742b02b574ee83e739f5764207664b" class="m-doc-self">palette</a>(</span><span class="m-doc-wrap">) const -&gt; const <a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a>&amp;</span>
            </dt>
            <dd>Returns the referenced color palette.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#ad4296dac489b600de6cb6d81e44b7790" class="m-doc">set_palette</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a>&amp; palette)</span>
            </dt>
            <dd>Sets the referenced color palette.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#ab456b10036b5df6469c9b8f3a8369722" class="m-doc">set_palette</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a>&amp;&amp; palette)</span>
            </dt>
            <dd>Sets the referenced color palette.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#af9cb7a325728ada21a0c860b0611fd45" class="m-doc">set_palette</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1bg__palette__item.html" class="m-doc">bg_<wbr />palette_<wbr />item</a>&amp; palette_item)</span>
            </dt>
            <dd>Replaces the referenced color palette with a new tile set created with the given <a href="classbn_1_1bg__palette__item.html" class="m-doc">bg_<wbr />palette_<wbr />item</a>.</dd>
            <dt id="a170046714390df30fc825460c90b670f">
              <span class="m-doc-wrap-bumper">auto <a href="#a170046714390df30fc825460c90b670f" class="m-doc-self">vram</a>(</span><span class="m-doc-wrap">) -&gt; <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1span.html" class="m-doc">span</a>&lt;<a href="namespacebn.html#abf2be6b23beabffcd77c28774dafbfc6" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />cell</a>&gt;&gt;</span>
            </dt>
            <dd>Returns the allocated memory in VRAM if this <a href="namespacebn.html#abf2be6b23beabffcd77c28774dafbfc6" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />cell</a> was created with allocate or allocate_optional; <a href="namespacebn.html#a01f293535903e4c4777564a86a0f520b" class="m-doc">bn::<wbr />nullopt</a> otherwise.</dd>
            <dt id="a19150c25b685c42318d2128eb13f6965">
              <span class="m-doc-wrap-bumper">auto <a href="#a19150c25b685c42318d2128eb13f6965" class="m-doc-self">handle</a>(</span><span class="m-doc-wrap">) const -&gt; int</span>
            </dt>
            <dd>Returns the internal handle.</dd>
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#af62b8c7b3f3a7e7e1bf5b382ca2f6dea" class="m-doc">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&amp; other)</span>
            </dt>
            <dd>Exchanges the contents of this <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> with those of the other one.</dd>
          </dl>
        </section>
        <section id="friends">
          <h2><a href="#friends">Friends</a></h2>
          <dl class="m-doc">
            <dt>
              <span class="m-doc-wrap-bumper">void <a href="#aa3ae93eb1bb9612c98a376fa6396400d" class="m-doc">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&amp; a,
              <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&amp; b)</span>
            </dt>
            <dd>Exchanges the contents of an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> with those of another one.</dd>
            <dt id="a0a37302f296b2b07a790b629f40f7cc6">
              <span class="m-doc-wrap-bumper">auto <a href="#a0a37302f296b2b07a790b629f40f7cc6" class="m-doc-self">operator==</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&amp; a,
              const <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&amp; b) -&gt; bool <span class="m-label m-flat m-info">defaulted</span></span>
            </dt>
            <dd>Default equal operator.</dd>
          </dl>
        </section>
        <section>
          <h2>Function documentation</h2>
          <section class="m-doc-details" id="aa1bcc168c5b95e9299d3730796595df9"><div>
            <h3>
              <span class="m-doc-wrap-bumper">static <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&gt; bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#aa1bcc168c5b95e9299d3730796595df9" class="m-doc-self">find</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a>&amp; map_item,
              const <a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a>&amp; tiles,
              const <a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a>&amp; palette)</span></span>
            </h3>
            <p>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">map_item</td>
                  <td><a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a> which references the map cells to search.</td>
                </tr>
                <tr>
                  <td>tiles</td>
                  <td>Referenced tiles of the map to search.</td>
                </tr>
                <tr>
                  <td>palette</td>
                  <td>Referenced color palette of the map to search.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information if it has been found; <a href="namespacebn.html#a01f293535903e4c4777564a86a0f520b" class="m-doc">bn::<wbr />nullopt</a> otherwise.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="ad503f1ffdc96630c6a828855f9db02fb"><div>
            <h3>
              <span class="m-doc-wrap-bumper">static <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&gt; bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ad503f1ffdc96630c6a828855f9db02fb" class="m-doc-self">find</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a>&amp; map_item,
              const <a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a>&amp; tiles,
              const <a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a>&amp; palette,
              int map_index)</span></span>
            </h3>
            <p>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">map_item</td>
                  <td><a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a> which references the map cells to search.</td>
                </tr>
                <tr>
                  <td>tiles</td>
                  <td>Referenced tiles of the map to search.</td>
                </tr>
                <tr>
                  <td>palette</td>
                  <td>Referenced color palette of the map to search.</td>
                </tr>
                <tr>
                  <td>map_index</td>
                  <td>Index of the referenced map to search.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information if it has been found; <a href="namespacebn.html#a01f293535903e4c4777564a86a0f520b" class="m-doc">bn::<wbr />nullopt</a> otherwise.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a13d54eda002cae1a62560c22a23e5a8f"><div>
            <h3>
              <span class="m-doc-wrap-bumper">static <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&gt; bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a13d54eda002cae1a62560c22a23e5a8f" class="m-doc-self">find</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__item.html" class="m-doc">affine_<wbr />bg_<wbr />item</a>&amp; item)</span></span>
            </h3>
            <p>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">item</td>
                  <td><a href="classbn_1_1affine__bg__item.html" class="m-doc">affine_<wbr />bg_<wbr />item</a> which references the tiles, the color palette and the map cells to search.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information if it has been found; <a href="namespacebn.html#a01f293535903e4c4777564a86a0f520b" class="m-doc">bn::<wbr />nullopt</a> otherwise.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="ad3107ecd99d42212c71d575979299590"><div>
            <h3>
              <span class="m-doc-wrap-bumper">static <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&gt; bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ad3107ecd99d42212c71d575979299590" class="m-doc-self">find</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__item.html" class="m-doc">affine_<wbr />bg_<wbr />item</a>&amp; item,
              int map_index)</span></span>
            </h3>
            <p>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">item</td>
                  <td><a href="classbn_1_1affine__bg__item.html" class="m-doc">affine_<wbr />bg_<wbr />item</a> which references the tiles, the color palette and the map cells to search.</td>
                </tr>
                <tr>
                  <td>map_index</td>
                  <td>Index of the referenced map to search.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information if it has been found; <a href="namespacebn.html#a01f293535903e4c4777564a86a0f520b" class="m-doc">bn::<wbr />nullopt</a> otherwise.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a2ea9c348a2cf36519c08b9cbd91e9941"><div>
            <h3>
              <span class="m-doc-wrap-bumper">static <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a2ea9c348a2cf36519c08b9cbd91e9941" class="m-doc-self">create</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a>&amp; map_item,
              <a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a> tiles,
              <a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a> palette)</span></span>
            </h3>
            <p>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information. If it is not found, it creates an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">map_item</td>
                  <td><a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a> which references the map cells to search or handle.</td>
                </tr>
                <tr>
                  <td>tiles</td>
                  <td>Referenced tiles of the map to search or handle.</td>
                </tr>
                <tr>
                  <td>palette</td>
                  <td>Referenced color palette of the map to search or handle.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information if it has been found; otherwise it returns an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it.</td>
                </tr>
              </tfoot>
            </table>
<p>The map cells are not copied but referenced, so they should outlive the <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> to avoid dangling references.</p>
          </div></section>
          <section class="m-doc-details" id="a1433c56e46c307e024a3ae23b9046f83"><div>
            <h3>
              <span class="m-doc-wrap-bumper">static <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a1433c56e46c307e024a3ae23b9046f83" class="m-doc-self">create</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a>&amp; map_item,
              <a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a> tiles,
              <a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a> palette,
              int map_index)</span></span>
            </h3>
            <p>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information. If it is not found, it creates an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">map_item</td>
                  <td><a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a> which references the map cells to search or handle.</td>
                </tr>
                <tr>
                  <td>tiles</td>
                  <td>Referenced tiles of the map to search or handle.</td>
                </tr>
                <tr>
                  <td>palette</td>
                  <td>Referenced color palette of the map to search or handle.</td>
                </tr>
                <tr>
                  <td>map_index</td>
                  <td>Index of the referenced map to search or handle.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information if it has been found; otherwise it returns an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it.</td>
                </tr>
              </tfoot>
            </table>
<p>The map cells are not copied but referenced, so they should outlive the <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> to avoid dangling references.</p>
          </div></section>
          <section class="m-doc-details" id="afecd1c9b58161775f197744554d390dc"><div>
            <h3>
              <span class="m-doc-wrap-bumper">static <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#afecd1c9b58161775f197744554d390dc" class="m-doc-self">create</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__item.html" class="m-doc">affine_<wbr />bg_<wbr />item</a>&amp; item)</span></span>
            </h3>
            <p>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information. If it is not found, it creates an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">item</td>
                  <td><a href="classbn_1_1affine__bg__item.html" class="m-doc">affine_<wbr />bg_<wbr />item</a> which references the tiles, the color palette and the map cells to search or handle.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information if it has been found; otherwise it returns an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it.</td>
                </tr>
              </tfoot>
            </table>
<p>The map cells are not copied but referenced, so they should outlive the <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> to avoid dangling references.</p>
          </div></section>
          <section class="m-doc-details" id="a83a31758b6147475af0d0d41b4ad5882"><div>
            <h3>
              <span class="m-doc-wrap-bumper">static <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a83a31758b6147475af0d0d41b4ad5882" class="m-doc-self">create</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__item.html" class="m-doc">affine_<wbr />bg_<wbr />item</a>&amp; item,
              int map_index)</span></span>
            </h3>
            <p>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information. If it is not found, it creates an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">item</td>
                  <td><a href="classbn_1_1affine__bg__item.html" class="m-doc">affine_<wbr />bg_<wbr />item</a> which references the tiles, the color palette and the map cells to search or handle.</td>
                </tr>
                <tr>
                  <td>map_index</td>
                  <td>Index of the referenced map to search or handle.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information if it has been found; otherwise it returns an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it.</td>
                </tr>
              </tfoot>
            </table>
<p>The map cells are not copied but referenced, so they should outlive the <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> to avoid dangling references.</p>
          </div></section>
          <section class="m-doc-details" id="a8d59b38758a575359f6418c646bfe600"><div>
            <h3>
              <span class="m-doc-wrap-bumper">static <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a8d59b38758a575359f6418c646bfe600" class="m-doc-self">allocate</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1size.html" class="m-doc">size</a>&amp; dimensions,
              <a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a> tiles,
              <a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a> palette)</span></span>
            </h3>
            <p>Creates an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references a chunk of VRAM map cells not visible on the screen.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">dimensions</td>
                  <td>Size in map cells of the map to allocate.</td>
                </tr>
                <tr>
                  <td>tiles</td>
                  <td>Referenced tiles of the map to allocate.</td>
                </tr>
                <tr>
                  <td>palette</td>
                  <td>Referenced color palette of the map to allocate.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references a chunk of VRAM map cells not visible on the screen.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a5ad234fba1443c49c2f524c90e4d5811"><div>
            <h3>
              <span class="m-doc-wrap-bumper">static <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&gt; bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a5ad234fba1443c49c2f524c90e4d5811" class="m-doc-self">create_optional</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a>&amp; map_item,
              <a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a> tiles,
              <a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a> palette)</span></span>
            </h3>
            <p>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information. If it is not found, it creates an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">map_item</td>
                  <td><a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a> which references the map cells to search or handle.</td>
                </tr>
                <tr>
                  <td>tiles</td>
                  <td>Referenced tiles of the map to search or handle.</td>
                </tr>
                <tr>
                  <td>palette</td>
                  <td>Referenced color palette of the map to search or handle.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information if it has been found; otherwise it returns an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it if the <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> can be allocated; <a href="namespacebn.html#a01f293535903e4c4777564a86a0f520b" class="m-doc">bn::<wbr />nullopt</a> otherwise.</td>
                </tr>
              </tfoot>
            </table>
<p>The map cells are not copied but referenced, so they should outlive the <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> to avoid dangling references.</p>
          </div></section>
          <section class="m-doc-details" id="a72a75fda942ee4917ebb0bad4ca2f163"><div>
            <h3>
              <span class="m-doc-wrap-bumper">static <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&gt; bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a72a75fda942ee4917ebb0bad4ca2f163" class="m-doc-self">create_optional</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a>&amp; map_item,
              <a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a> tiles,
              <a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a> palette,
              int map_index)</span></span>
            </h3>
            <p>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information. If it is not found, it creates an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">map_item</td>
                  <td><a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a> which references the map cells to search or handle.</td>
                </tr>
                <tr>
                  <td>tiles</td>
                  <td>Referenced tiles of the map to search or handle.</td>
                </tr>
                <tr>
                  <td>palette</td>
                  <td>Referenced color palette of the map to search or handle.</td>
                </tr>
                <tr>
                  <td>map_index</td>
                  <td>Index of the referenced map to search or handle.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information if it has been found; otherwise it returns an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it if the <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> can be allocated; <a href="namespacebn.html#a01f293535903e4c4777564a86a0f520b" class="m-doc">bn::<wbr />nullopt</a> otherwise.</td>
                </tr>
              </tfoot>
            </table>
<p>The map cells are not copied but referenced, so they should outlive the <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> to avoid dangling references.</p>
          </div></section>
          <section class="m-doc-details" id="aa20ae5947659116553571ae5b0f007b4"><div>
            <h3>
              <span class="m-doc-wrap-bumper">static <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&gt; bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#aa20ae5947659116553571ae5b0f007b4" class="m-doc-self">create_optional</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__item.html" class="m-doc">affine_<wbr />bg_<wbr />item</a>&amp; item)</span></span>
            </h3>
            <p>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information. If it is not found, it creates an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">item</td>
                  <td><a href="classbn_1_1affine__bg__item.html" class="m-doc">affine_<wbr />bg_<wbr />item</a> which references the tiles, the color palette and the map cells to search or handle.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information if it has been found; otherwise it returns an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it if the <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> can be allocated; <a href="namespacebn.html#a01f293535903e4c4777564a86a0f520b" class="m-doc">bn::<wbr />nullopt</a> otherwise.</td>
                </tr>
              </tfoot>
            </table>
<p>The map cells are not copied but referenced, so they should outlive the <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> to avoid dangling references.</p>
          </div></section>
          <section class="m-doc-details" id="a95aab24f6f71e60cf71dbec53a9047fd"><div>
            <h3>
              <span class="m-doc-wrap-bumper">static <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&gt; bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a95aab24f6f71e60cf71dbec53a9047fd" class="m-doc-self">create_optional</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__item.html" class="m-doc">affine_<wbr />bg_<wbr />item</a>&amp; item,
              int map_index)</span></span>
            </h3>
            <p>Searches for an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information. If it is not found, it creates an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">item</td>
                  <td><a href="classbn_1_1affine__bg__item.html" class="m-doc">affine_<wbr />bg_<wbr />item</a> which references the tiles, the color palette and the map cells to search or handle.</td>
                </tr>
                <tr>
                  <td>map_index</td>
                  <td>Index of the referenced map to search or handle.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references the given information if it has been found; otherwise it returns an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references it if the <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> can be allocated; <a href="namespacebn.html#a01f293535903e4c4777564a86a0f520b" class="m-doc">bn::<wbr />nullopt</a> otherwise.</td>
                </tr>
              </tfoot>
            </table>
<p>The map cells are not copied but referenced, so they should outlive the <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> to avoid dangling references.</p>
          </div></section>
          <section class="m-doc-details" id="aad64c1ebd6e58059ffa2fdd51784b76d"><div>
            <h3>
              <span class="m-doc-wrap-bumper">static <a href="classbn_1_1optional.html" class="m-doc">optional</a>&lt;<a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&gt; bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#aad64c1ebd6e58059ffa2fdd51784b76d" class="m-doc-self">allocate_optional</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1size.html" class="m-doc">size</a>&amp; dimensions,
              <a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a> tiles,
              <a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a> palette)</span></span>
            </h3>
            <p>Creates an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references a chunk of VRAM map cells not visible on the screen.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">dimensions</td>
                  <td>Size in map cells of the map to allocate.</td>
                </tr>
                <tr>
                  <td>tiles</td>
                  <td>Referenced tiles of the map to allocate.</td>
                </tr>
                <tr>
                  <td>palette</td>
                  <td>Referenced color palette of the map to allocate.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> which references a chunk of VRAM map cells not visible on the screen if the <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> can be allocated; <a href="namespacebn.html#a01f293535903e4c4777564a86a0f520b" class="m-doc">bn::<wbr />nullopt</a> otherwise.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="a80cffa3fed413db7f6febfb77d1f20dc"><div>
            <h3>
              <span class="m-doc-wrap-bumper"> bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a80cffa3fed413db7f6febfb77d1f20dc" class="m-doc-self">affine_bg_map_ptr</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&amp; other)</span></span>
            </h3>
            <p>Copy constructor.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">other</td>
                  <td><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> to copy.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="a660a154e2ae9c7062dd6069655a75935"><div>
            <h3>
              <span class="m-doc-wrap-bumper"> bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a660a154e2ae9c7062dd6069655a75935" class="m-doc-self">affine_bg_map_ptr</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&amp;&amp; other) <span class="m-label m-success">noexcept</span></span></span>
            </h3>
            <p>Move constructor.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">other</td>
                  <td><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> to move.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="aea515a7f9838ef83a45cd32795f08aff"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&amp; bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#aea515a7f9838ef83a45cd32795f08aff" class="m-doc-self">operator=</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&amp; other)</span></span>
            </h3>
            <p>Copy assignment operator.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">other</td>
                  <td><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> to copy.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td>Reference to this.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="ab19b38dcb9ee796ec7ad45c4292e5a77"><div>
            <h3>
              <span class="m-doc-wrap-bumper"><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&amp; bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ab19b38dcb9ee796ec7ad45c4292e5a77" class="m-doc-self">operator=</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&amp;&amp; other) <span class="m-label m-success">noexcept</span></span></span>
            </h3>
            <p>Move assignment operator.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">other</td>
                  <td><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> to move.</td>
                </tr>
              </tbody>
              <tfoot>
                <tr>
                  <th>Returns</th>
                  <td>Reference to this.</td>
                </tr>
              </tfoot>
            </table>
          </div></section>
          <section class="m-doc-details" id="ae9cad293283c76cbf828c692414bedd5"><div>
            <h3>
              <span class="m-doc-wrap-bumper">bool bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ae9cad293283c76cbf828c692414bedd5" class="m-doc-self">big</a>(</span><span class="m-doc-wrap">) const</span></span>
            </h3>
            <p>Indicates if this map is big or not.</p>
<p>Big backgrounds are slower CPU wise, but can have any width or height multiple of 256 pixels.</p>
          </div></section>
          <section class="m-doc-details" id="ad6f9f3c533746536389696a801ee1a3e"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ad6f9f3c533746536389696a801ee1a3e" class="m-doc-self">set_cells_ref</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a>&amp; map_item)</span></span>
            </h3>
            <p>Sets the map cells to handle.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">map_item</td>
                  <td><a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a> which references the map cells to set.</td>
                </tr>
              </tbody>
            </table>
<p>The map system does not support multiple <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> items referencing to the same map cells.</p><p>The map cells are not copied but referenced, so they should outlive the <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> to avoid dangling references.</p>
          </div></section>
          <section class="m-doc-details" id="aafaa2304b5f6ab9ed718b5378d587de4"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#aafaa2304b5f6ab9ed718b5378d587de4" class="m-doc-self">set_cells_ref</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a>&amp; map_item,
              int map_index)</span></span>
            </h3>
            <p>Sets the map cells to handle.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">map_item</td>
                  <td><a href="classbn_1_1affine__bg__map__item.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />item</a> which references the map cells to set.</td>
                </tr>
                <tr>
                  <td>map_index</td>
                  <td>Index of the referenced map to set.</td>
                </tr>
              </tbody>
            </table>
<p>The map system does not support multiple <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> items referencing to the same map cells.</p><p>The map cells are not copied but referenced, so they should outlive the <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> to avoid dangling references.</p>
          </div></section>
          <section class="m-doc-details" id="a7abfa3ba85b08981dbcc0a97ffd56b8a"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a7abfa3ba85b08981dbcc0a97ffd56b8a" class="m-doc-self">set_tiles</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a>&amp; tiles)</span></span>
            </h3>
            <p>Sets the referenced tiles.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">tiles</td>
                  <td><a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a> to copy.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="abf37f96e110e2e811146c31c364b9229"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#abf37f96e110e2e811146c31c364b9229" class="m-doc-self">set_tiles</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a>&amp;&amp; tiles)</span></span>
            </h3>
            <p>Sets the referenced tiles.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">tiles</td>
                  <td><a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a> to move.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="a2c16a1b8942fb862035d8dde78eedc31"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#a2c16a1b8942fb862035d8dde78eedc31" class="m-doc-self">set_tiles</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1affine__bg__tiles__item.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />item</a>&amp; tiles_item)</span></span>
            </h3>
            <p>Replaces the referenced tiles with a new tile set created with the given <a href="classbn_1_1affine__bg__tiles__item.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />item</a>.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">tiles_item</td>
                  <td>It creates the new background tiles to reference.</td>
                </tr>
              </tbody>
            </table>
<p>Before creating a new background tile set, the <a href="classbn_1_1affine__bg__tiles__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />tiles_<wbr />ptr</a> referenced by this map is removed, so VRAM usage is reduced.</p>
          </div></section>
          <section class="m-doc-details" id="ad4296dac489b600de6cb6d81e44b7790"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ad4296dac489b600de6cb6d81e44b7790" class="m-doc-self">set_palette</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a>&amp; palette)</span></span>
            </h3>
            <p>Sets the referenced color palette.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">palette</td>
                  <td><a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a> to copy.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="ab456b10036b5df6469c9b8f3a8369722"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#ab456b10036b5df6469c9b8f3a8369722" class="m-doc-self">set_palette</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a>&amp;&amp; palette)</span></span>
            </h3>
            <p>Sets the referenced color palette.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">palette</td>
                  <td><a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a> to move.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="af9cb7a325728ada21a0c860b0611fd45"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#af9cb7a325728ada21a0c860b0611fd45" class="m-doc-self">set_palette</a>(</span><span class="m-doc-wrap">const <a href="classbn_1_1bg__palette__item.html" class="m-doc">bg_<wbr />palette_<wbr />item</a>&amp; palette_item)</span></span>
            </h3>
            <p>Replaces the referenced color palette with a new tile set created with the given <a href="classbn_1_1bg__palette__item.html" class="m-doc">bg_<wbr />palette_<wbr />item</a>.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">palette_item</td>
                  <td>It creates the new color palette to reference.</td>
                </tr>
              </tbody>
            </table>
<p>Before creating a new color palette, the <a href="classbn_1_1bg__palette__ptr.html" class="m-doc">bg_<wbr />palette_<wbr />ptr</a> referenced by this map is removed, so VRAM usage is reduced.</p>
          </div></section>
          <section class="m-doc-details" id="af62b8c7b3f3a7e7e1bf5b382ca2f6dea"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void bn::<wbr />affine_bg_map_ptr::<wbr /></span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#af62b8c7b3f3a7e7e1bf5b382ca2f6dea" class="m-doc-self">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&amp; other)</span></span>
            </h3>
            <p>Exchanges the contents of this <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> with those of the other one.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">other</td>
                  <td><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> to exchange the contents with.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
          <section class="m-doc-details" id="aa3ae93eb1bb9612c98a376fa6396400d"><div>
            <h3>
              <span class="m-doc-wrap-bumper">void </span><span class="m-doc-wrap"><span class="m-doc-wrap-bumper"><a href="#aa3ae93eb1bb9612c98a376fa6396400d" class="m-doc-self">swap</a>(</span><span class="m-doc-wrap"><a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&amp; a,
              <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a>&amp; b)</span></span>
            </h3>
            <p>Exchanges the contents of an <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> with those of another one.</p>
            <table class="m-table m-fullwidth m-flat">
              <thead>
                <tr><th colspan="2">Parameters</th></tr>
              </thead>
              <tbody>
                <tr>
                  <td style="width: 1%">a</td>
                  <td>First <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> to exchange the contents with.</td>
                </tr>
                <tr>
                  <td>b</td>
                  <td>Second <a href="classbn_1_1affine__bg__map__ptr.html" class="m-doc">affine_<wbr />bg_<wbr />map_<wbr />ptr</a> to exchange the contents with.</td>
                </tr>
              </tbody>
            </table>
          </div></section>
        </section>
      </div>
    </div>
  </div>
</article></main>
<div class="m-doc-search" id="search">
  <a href="#!" onclick="return hideSearch()"></a>
  <div class="m-container">
    <div class="m-row">
      <div class="m-col-m-8 m-push-m-2">
        <div class="m-doc-search-header m-text m-small">
          <div><span class="m-label m-default">Tab</span> / <span class="m-label m-default">T</span> to search, <span class="m-label m-default">Esc</span> to close</div>
          <div id="search-symbolcount">&hellip;</div>
        </div>
        <div class="m-doc-search-content">
          <form>
            <input type="search" name="q" id="search-input" placeholder="Loading &hellip;" disabled="disabled" autofocus="autofocus" autocomplete="off" spellcheck="false" />
          </form>
          <noscript class="m-text m-danger m-text-center">Unlike everything else in the docs, the search functionality <em>requires</em> JavaScript.</noscript>
          <div id="search-help" class="m-text m-dim m-text-center">
            <p class="m-noindent">Search for symbols, directories, files, pages or
            modules. You can omit any prefix from the symbol or file path; adding a
            <code>:</code> or <code>/</code> suffix lists all members of given symbol or
            directory.</p>
            <p class="m-noindent">Use <span class="m-label m-dim">&darr;</span>
            / <span class="m-label m-dim">&uarr;</span> to navigate through the list,
            <span class="m-label m-dim">Enter</span> to go.
            <span class="m-label m-dim">Tab</span> autocompletes common prefix, you can
            copy a link to the result using <span class="m-label m-dim">⌘</span>
            <span class="m-label m-dim">L</span> while <span class="m-label m-dim">⌘</span>
            <span class="m-label m-dim">M</span> produces a Markdown link.</p>
          </div>
          <div id="search-notfound" class="m-text m-warning m-text-center">Sorry, nothing was found.</div>
          <ul id="search-results"></ul>
        </div>
      </div>
    </div>
  </div>
</div>
<script src="search-v2.js"></script>
<script src="searchdata-v2.js" async="async"></script>
<footer><nav>
  <div class="m-container">
    <div class="m-row">
      <div class="m-col-l-10 m-push-l-1">
        <p>Butano Docs. Created with <a href="https://doxygen.org/">Doxygen</a> 1.14.0 and <a href="https://mcss.mosra.cz/">m.css</a>.</p>
      </div>
    </div>
  </div>
</nav></footer>
</body>
</html>
